import com.itheima.pojo.Account;
import com.itheima.service.AccountService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class App {

    public static void main(String[] args) {
        ApplicationContext applicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");

        AccountService accountService = (AccountService) applicationContext.getBean("accountService");

        Account account = new Account();
        account.setName("ladygaga");
        account.setMoney(9000d);
        accountService.save(account);

        /*Account account1 = accountService.findById(1);
        System.out.println(account1);*/
    }
}
